package com.example.demo.spring.ioc.case02;

import com.example.demo.spring.ioc.case02.ca.BusinessObject;

import java.lang.reflect.InvocationTargetException;

/**
 * 测试类
 * @author: htc
 * @date: Created in 16:38 2019/1/10.
 */
public class BeanFactoryTester {
    public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
        BeanFactory beanFactory = new BeanFactory("com.example.swap.spring.ioc.case02");
        BusinessObject object = (BusinessObject) beanFactory.getBean("businessObject");
        object.print();
    }
}
